import service from '../utils/request'

//根据分页查询获取数据
export const getTagsByPagination = (params:any) => {
    return service({
        url:'/api/tag/search',
        method:'get',
        params
    })
}

//根据id查看详情
export const detailTagById = (params:any) => {
    return service({
        url:'/api/tag/detail',
        method:'get',
        params
    })
}
//根据id删除标签
export const deleteTagById = (params:any) => {
    return service({
        url:'/api/tag/delete',
        method:'post',
        params
    })
}

//根据id修改标签名
export const modifyTagById = (params:any) => {
    return service({
        url:'/api/tag/modify',
        method:'post',
        params
    })
}

//新增标签
export const addTag = (params:any) => {
    return service({
        url:'/api/tag/add',
        method:'post',
        params
    })
}
//批量删除
export const deleteTagsAmount = (params:any) => {
    return service({
        url:'/api/tag/delete/amount',
        method:'post',
        params
    })
}
//获取标签创建比例
export const getTagsRate = (params:any) => {
    return service({
        url:'/api/tag/tag/number',
        method:'get',
        params
    })
}